home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5231 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  981 b 

  1. Path: news.nstn.ca!news
  2. From: nstn2264@fox.nstn.ca (Robin Murray)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: I can't control size of child window ind MDI application.
  5. Date: Sat, 03 Feb 1996 04:47:23 GMT
  6. Organization: Nova Scotia Technology Network
  7. Message-ID: <4eulo6$qd5@news.nstn.ca>
  8. References: <3112BEE8.7C88@au2.au.ac.th>
  9. NNTP-Posting-Host: ts1-05.mon.inforamp.net
  10. X-Newsreader: Forte Free Agent v0.46
  11.  
  12. Wisanu Suthanurak <u3816076@au2.au.ac.th> wrote:
  13.  
  14. >    I want to adjust size of child window to fit with picture that I 
  15. > loaded it. I try to use SetWindowPos(...) but it change only scrollbar. 
  16. >How can I control my child window fit with picture?. I use CScrollView 
  17. >as my base of myview.. 
  18.  
  19. try setting the ShrinkToClient bool to TRUE when create the MDIChild.
  20.  
  21. TMDIChild* child = new TMDIChild( *client, 0, view.GetWindow(), 
  22.   TRUE );  <==this guy here
  23.  
  24. this will "shrinkwrap" your parent frame around the client window.
  25. --
  26. Robin Murray
  27. Moncton, New Brunswick
  28. 506-853-3779
  29.  
  30.